package com.wpp;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/*//@WebFilter("*.jsp")
public class FilterServlet implements Filter {
    public void destroy() {
        System.out.println("销毁。。。");
    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("开始拦截了");
        chain.doFilter(req, resp);
        System.out.println("拦截回来了");
    }

    public void init(FilterConfig config) throws ServletException {
        System.out.println("初始化。。。");
    }

}*/
